package com.news.entity;

/**
 * @Author:weiming
 * @Date:2021/3/29
 */
public class Comment {
    private Integer id;
    /**
     * 文章id
     */
    private Integer articleId;
    /**
     * 评论
     */
    private String comment;
    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 是否展示（审核状态0->等待审核，1->展示，-1->审核不通过）
     */
    private Integer isShow;

    public Comment() {
    }

    public Comment(Integer id, Integer articleId, String comment, Integer userId, String username, Integer isShow) {
        this.id = id;
        this.articleId = articleId;
        this.comment = comment;
        this.userId = userId;
        this.username = username;
        this.isShow = isShow;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Comment{");
        sb.append("id=").append(id);
        sb.append(", articleId=").append(articleId);
        sb.append(", comment='").append(comment).append('\'');
        sb.append(", userId=").append(userId);
        sb.append(", username='").append(username).append('\'');
        sb.append(", isShow=").append(isShow);
        sb.append('}');
        return sb.toString();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }
}
